﻿using System;
using System.Windows.Forms;
using Business;
using Business.Forms;
using DevExpress.LookAndFeel;
using Ecf.Forms;

namespace Vendas
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();

            UserLookAndFeel.Default.SetSkinStyle(Properties.Settings.Default.Skin);
            using (var log = new FormLogin())
            {
                log.MostraOpcoesVenda();
                log.ShowDialog();
                
                if (log.AcessarMenuFiscal())
                {

                    Application.Run(new FormMenuFiscal(FormMenuFiscal.MenuFiscalTipo.Mercearia));
                }
                else
                {
                    Application.Run(new VendasMercearia());
                }
            }
        }



    }
}